from enum import IntEnum, auto


class Attribute:
    def __init__(self, attr_name: str, attr_type: str):
        self.name = attr_name
        self.type = attr_type

    def __iter__(self):
        yield self.type
        yield self.name

    @staticmethod
    def is_same_type(a, b):
        return a.type == b.type


class Constant(IntEnum):
    POSITION = auto()
    NORMAL = auto()
    TEXCOORD = auto()
    INDEX = auto()
